package infaraway.strategy.duck;

import infaraway.strategy.Duck;
import infaraway.strategy.Fly.Fly2;
import infaraway.strategy.Quack.Quack2;


/**
 * Created by :Infaraway
 * DATE : 2017/4/25
 * Time : 23:08
 * Funtion :
 */
public class Duck2 extends Duck {

    public Duck2(){
        flyBehavior = new Fly2();
        quackBehavior = new Quack2();
    }
    @Override
    public void display() {
        System.out.println("this is duck 2...");
    }
}
